package wwl.lsf.test.dongtaidaili;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class CunqianProxyHandler implements InvocationHandler {

    private CunQian cunQian;

    public CunqianProxyHandler(CunQian cunQian) {
        this.cunQian = cunQian;
    }


    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        System.out.println("代理秀");
        Object cunqian = method.invoke(cunQian, args);
        System.out.println("cunqian = " + cunqian);
        return null;
    }
}
